package cz.boxdesign.library.web.decorator;

import org.displaytag.decorator.TableDecorator;

import cz.boxdesign.library.entity.Publisher;

public class PublisherDecorator extends TableDecorator {

	public String getEditUrl() {
		Publisher kniha = (Publisher) getCurrentRowObject();
		return "<a href=\"/isLibrary/publisher/edit.do?publisherId=" + kniha.getId() + "\"><img src=\"/isLibrary/images/icons/edit_16.png\"/></a>";
	}

	public String getShowUrl() {
		Publisher kniha = (Publisher) getCurrentRowObject();
		return "<a href=\"/isLibrary/publisher/show.do?publisherId=" + kniha.getId() + "\"><img src=\"/isLibrary/images/icons/goto_16.png\"/></a>";
	}
}
